package TEST;
import java.util.*;
class BankAccount{
    int balance;

    BankAccount(){
        balance = 0;
    }
    BankAccount(int balance){
        this.balance = balance;
    }

    void setBalance(int balance){
        this.balance = balance;
    }

    int getBlance(){
        return balance;
    }
    int withdraw(int amount){
        balance -= amount;
        return balance;
    }
    int deposit(int amount){
        balance += amount;
        return balance;
    }
}

public class Test04 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        BankAccount ba = new BankAccount();
        int b, a1, a2;
        b = sc.nextInt();
        a1 = sc.nextInt();
        a2 = sc.nextInt();

        ba.setBalance(b);
        System.out.println(ba.getBlance());
        System.out.println(ba.withdraw(a1));
        System.out.println(ba.deposit(a2));
        sc.close();
    }
}


